package fr.louloutes.lolshooter.engine.objects.weapons;

import fr.louloutes.lolshooter.engine.sprites.LolSprite;
import fr.louloutes.lolshooter.engine.sprites.SpriteBullet;
import android.content.res.Resources;

/**
 * Class SimplePlayerGun: handling of monsters weapon
 * 
 * @author Louloute
 * 
 */

public class SimplePlayerGun extends Weapon
{

	/**
	 * Empty constructor
	 */
	public SimplePlayerGun()
	{
		super( 0.5f );
		speed = 0.3;
		damage = 5;
		angle = -Math.PI / 2;
	}

	/* (non-Javadoc)
	 * @see fr.louloutes.lolshooter.engine.Weapon#getProjectile(android.content.res.Resources)
	 * 
	 * Get a new bullet from this weapon
	 */
	@Override
	public Projectile getProjectile( Resources res )
	{
		LolSprite sprite = new SpriteBullet( res );
		Projectile p = new Projectile( sprite, this );
		return p;
	}
}
